import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import CreateMaterial from './components/CreateMaterial';
import CreateMaterialRequest from './components/CreateMaterialRequest';
import ShowMaterialRequest from './components/ShowMaterialRequest';

function App() {
  return (
    <Router>
      <Routes>
        <Route path="/create/material" element={<CreateMaterial />} />
        <Route path="/create/material_request" element={<CreateMaterialRequest />} />
        <Route path="/show/material_request/:materialRequestId" element={<ShowMaterialRequest />} />
      </Routes>
    </Router>
  );
}

export default App;